/*
 * sendMsgBridge.s
 * iCodeMacRun
 *
 * Created by Andrew Barry on 29/10/09.
 * Copyright 2009 __MyCompanyName__. All rights reserved.
 */


	.text
	.globl _invokeMsgSendV

_invokeMsgSendV:
	pushl	%ebp
	movl	%esp, %ebp
	subl	$8, %esp

	movl	16(%ebp), %edx
	subl	%edx, %esp
	
	movl	8(%ebp), %eax
	movl	12(%ebp), %edx
	
loop:
	cmpl	$0, %edx
	je		_done

	dec		%edx

	pushl	(%eax,%edx,4)

	jmp		loop

_done:
	
	call	_objc_msgSend
	
	leave
	ret
